<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="11">dsd</div>
    <script>
        
        var e = document.getElementById("11");
        var x = e.getBoundingClientRect();
        console.log(x);
        // var offsets = box.left + offsets.x;
        // var y = box.top + offsets.y;

    </script>
</body>


</html>